/* pages/InterviewPrep/style.css - 修复后的面试准备页面样式 */
.prep-interview-prep {
  min-height: calc(100vh - 120px); /* 减去header和footer的高度 */
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  /* 移除背景，使用App的背景 */
}

.prep-container {
  max-width: 800px;
  width: 100%;
  background: white;
  border-radius: 24px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.prep-header {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 3rem 3rem 2rem;
  text-align: center;
}

.prep-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.prep-header p {
  font-size: 1.1rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.prep-form {
  padding: 3rem;
}

.prep-form-section {
  margin-bottom: 2.5rem;
}

.prep-form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
}

.prep-form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.prep-form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.prep-form-input.prep-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.prep-error-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ef4444;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.prep-common-positions {
  margin-top: 1rem;
}

.prep-positions-label {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  display: block;
}

.prep-position-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.prep-position-tag {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.prep-position-tag:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.prep-position-tag.prep-active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.prep-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  background: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.prep-upload-area:hover {
  border-color: #667eea;
  background: #f8faff;
}

.prep-upload-area.prep-drag-active {
  border-color: #667eea;
  background: #f0f4ff;
  transform: scale(1.02);
}

.prep-upload-area.prep-error {
  border-color: #ef4444;
  background: #fef2f2;
}

.prep-file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  top: 0;
  left: 0;
}

.prep-upload-prompt {
  pointer-events: none;
}

.prep-upload-icon {
  color: #9ca3af;
  margin-bottom: 1rem;
}

.prep-upload-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.prep-upload-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 1.5rem 0;
}

.prep-upload-btn {
  background: #667eea !important; /* 强制设置背景 */
  color: white !important; /* 强制设置文字颜色 */
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  border: none;
  display: inline-block;
  text-decoration: none;
}

.prep-upload-btn:hover {
  background: #5a6fd8 !important;
  transform: translateY(-1px);
}

.prep-file-selected {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-align: left;
}

.prep-file-icon {
  color: #667eea;
  flex-shrink: 0;
}

.prep-file-info {
  flex: 1;
}

.prep-file-name {
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.25rem 0;
}

.prep-file-size {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}

.prep-change-file-btn {
  background: #f3f4f6 !important;
  color: #374151 !important;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.prep-change-file-btn:hover {
  background: #e5e7eb !important;
}

.prep-form-actions {
  text-align: center;
  margin-top: 3rem;
}

.prep-submit-error {
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.prep-submit-btn {
  background: linear-gradient(45deg, #667eea, #764ba2) !important; /* 强制设置背景 */
  color: white !important; /* 强制设置文字颜色 */
  border: none !important;
  padding: 1.25rem 2.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  min-width: 200px;
  justify-content: center;
  opacity: 1 !important; /* 强制设置不透明 */
  visibility: visible !important; /* 强制可见 */
}

.prep-submit-btn:hover:not(:disabled) {
  background: linear-gradient(45deg, #5a6fd8, #6a4190) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.prep-submit-btn:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed;
  transform: none;
}

.prep-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: prep-spin 1s linear infinite;
}

@keyframes prep-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.prep-tips {
  background: #f9fafb;
  padding: 2rem 3rem;
  border-top: 1px solid #e5e7eb;
}

.prep-tips h3 {
  color: #374151;
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
}

.prep-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prep-tips li {
  padding: 0.5rem 0;
  color: #6b7280;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.5rem;
}

.prep-tips li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .prep-interview-prep {
    padding: 1rem;
  }
  
  .prep-header {
    padding: 2rem 2rem 1.5rem;
  }
  
  .prep-header h1 {
    font-size: 2rem;
  }
  
  .prep-form {
    padding: 2rem;
  }
  
  .prep-tips {
    padding: 1.5rem 2rem;
  }
  
  .prep-position-tags {
    gap: 0.3rem;
  }
  
  .prep-position-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .prep-file-selected {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}